<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Post请求模拟</title>
</head>
<script type="text/javascript">
	function tijiao(){
		document.form1.action=document.getElementById("url").value;
		document.getElementById("param1Value").setAttribute("name", document.getElementById("param1").value);
		document.getElementById("param2Value").setAttribute("name", document.getElementById("param2").value);
		document.getElementById("param3Value").setAttribute("name", document.getElementById("param3").value);
		document.getElementById("param4Value").setAttribute("name", document.getElementById("param4").value);
		document.form1.submit();
	}
</script>
<body>
	<form id="form1" name="form1" method="post"
		action="http://localhost/feiyoung-platform-openapi-server/rest/login">
		<p>
			请求地址:<input type="text" size="200" id="url" style="width: 80%;"/>
		</p>
		<p>
			参数1名称:<input id="param1" type="text" value="" /> 参数1值:<input id="param1Value" type="text" value="" />
		</p>
		<p>
			参数2名称:<input id="param2" type="text" value="" /> 参数2值:<input id="param2Value" type="text" value="" />
		</p>
		<p>
			参数3名称:<input id="param3" type="text" value="" /> 参数3值:<input id="param3Value" type="text" value="" />
		</p>
		<p>
			参数4名称:<input id="param4" type="text" value="" /> 参数4值:<input id="param4Value" type="text" value="" />
		</p>
		<input type="button" value="提交" onclick="tijiao()" />
	</form>
</body>

</html>